package com.sun.common.core.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
public class BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", name = "id", position = 1, example = "0")
    private String id;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", name = "createBy", position = 297, example = "0")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", name = "modifiedBy", position = 298, example = "0")
    private String modifiedBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", name = "gmtCreate", position = 299, example = "2020-08-21 12:12:20")
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", name = "gmtModified", position = 300, example = "2020-08-21 12:12:20")
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

}
